#ifndef DANMU_H
#define DANMU_H
#include<QLabel>
#include <QWidget>
#include<QGraphicsTextItem>
#include<QPropertyAnimation>

class fontType:public QObject{
public:
    QString m_content;
    qint8 m_size;
    bool  m_italic;
public:
    fontType(QString str,qint8 size=14 ,bool italic=false);


};
class danmu : public QWidget
{
    Q_OBJECT
public:
    explicit danmu(QWidget *parent = nullptr,QString str="");
    void move(QLabel* label,QWidget* parent);
    ~danmu();
private:
    QGraphicsTextItem* ptextItem;
    QPropertyAnimation* animation;
    QLabel* textLabel;





signals:

};




#endif // DANMU_H
